import fetch from '@/utils/fetch';




// 说明：消息记录分页查询(条件搜索)
// 接口：api/base/flNewLog/search/{page}/{size}
// 请求类型：Post
export function searchFlNewLog(page, size, obj) {
    return fetch({
        url: 'api/admin/flNewLog/search/'+ page +'/'+ size,
        method: 'post',
        data: obj
    });
}

// 说明：获取单个消息记录
// 接口：api/base/flNewLog/{id}
// 请求类型：get
export function getFlNewLog(id) {
    return fetch({
        url: 'api/admin/flNewLog/' + id,
        method: 'get'
    })
}

// 说明：删除消息记录
// 接口：api/base/flNewLog/{ids}
// 请求类型：Delete
export function deleteFlNewLog(idArr) {
    return fetch({
        url: 'api/admin/flNewLog/' + idArr,
        method: 'delete'
    });
}

// 说明：修改消息记录
// 接口：api/base/flNewLog/{id}
// 请求类型：Put
export function modifyFlNewLog(id, obj) {
    return fetch({
        url: 'api/admin/flNewLog/' + id,
        method: 'put',
        data: obj
    })
}

// 说明：批量已读
// 接口：api/base/flNewLog/{id}
// 请求类型：Put
export function updateAll(idArr) {
    return fetch({
        url: 'api/admin/flNewLog/updateAll/' + idArr,
        method: 'put'
    })
}

